#include "gtest/gtest.h"
#include <iostream>

#include "machine.h"
#include "machine_factory.h"

using namespace std;

TEST(Machine_factory, test )
{
  Machine *m = Machine_factory::create( string("eater1D") );

  m->predict( 0.0 );

  m = Machine_factory::create("unknown");

  ASSERT_EQ((Machine *)NULL, m);
}
